package com.mmall.pay.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.mmall.pay.pojo.entity.PaymentFlowEntity;

/**
 * @author guigu
 */
@Mapper
public interface PaymentFlowMapper {

    /**
     * 选择性插入
     *
     * @param paymentFlowEntity PaymentFlowEntity
     * @return int
     */
    int insertSelective(@Param("paymentFlowEntity") PaymentFlowEntity paymentFlowEntity);

    /**
     * 批量插入
     *
     * @param paymentFlowEntitys List<PaymentFlowEntity>
     * @return int
     */
    int insertList(@Param("paymentFlowEntitys") List<PaymentFlowEntity> paymentFlowEntitys);

    /**
     * 更新
     *
     * @param paymentFlowEntity PaymentFlowEntity
     * @return int
     */
    int updateByPrimaryKeySelective(@Param("paymentFlowEntity") PaymentFlowEntity paymentFlowEntity);

    void updateByOutTradeNoAndOptionType(PaymentFlowEntity paymentFlowEntity);
}
